#include "Proxy.h"

int main(int argc, char *argv[])
{
    Proxy *proxy = new Proxy(new RealSubject());
    proxy->doSomething();

    proxy->login();
    proxy->doSomething();
    proxy->logout();

    proxy->doSomething();
    delete proxy;

    return 0;
}